DECLARE @detailName varchar

--Uncomment the position you want the whereabouts calendar to go
--MENU |   Body   |  Right

--SET @detailName = 'Home.DetailView.Body'
--SET @detailName = 'Home.DetailView.Right'

IF @detailName IS NOT NULL
BEGIN
	DECLARE @relationshipOrder int
	SET @relationshipOrder = (SELECT (MAX(RELATIONSHIP_ORDER) + 1) as RelationshipOrder FROM DETAILVIEWS_RELATIONSHIPS WHERE DETAIL_NAME = @detailName)

	EXEC spDETAILVIEWS_RELATIONSHIPS_Update null, '00000000-0000-0000-0000-000000000001', @detailName, 
		'Employees', '~/Employees/EmployeeList', @relationshipOrder, 'Employees.LBL_EMPLOYEES'
END